class ParameterResoult < ActiveRecord::Base
    hobo_model # Don't put anything above this

  fields do
    description :text
    value:decimal
    timestamps
  end

  has_one :parameter_norm
  belongs_to :temporary_examination_resoult
  # --- Permissions --- #

  def create_permitted?
    acting_user.administrator?
  end

  def update_permitted?
    acting_user.administrator?
  end

  def destroy_permitted?
    acting_user.administrator?
  end

  def view_permitted?(field)
    true
  end
end
